﻿using System;
using W2R.Core.DataAccess.Support;
using W2R.Core.Models.DataAccess;
using W2R.Core.Models.Entities;

namespace W2R.Core.DataAccess
{
    /// <summary>
    /// Represents a Repository of Books.
    /// </summary>
    public class BooksRepo : BaseRepo<Guid, Book>, IBooksRepo
    {
        #region Constructor

        public BooksRepo(IUnitOfWork uof)
            : base(uof, (uof.Context as W2RDataContext).Books, new GuidIdentifierGenerator())
        {
        }

        #endregion
    }
}
